// app/model/user.js
'use strict';

module.exports = app => {
  const {
    STRING,
    INTEGER,
  } = app.Sequelize;

  const User = app.model.define('user', {
    // ID 
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    // 工号
    job_number: STRING,
    // 密码
    password: STRING,
    sex: STRING,//性别
    phone: STRING,//手机号
    avatar: STRING,//头像
  }, {
    freezeTableName: true,
    timestamps: false,
  });

  return User;
};

